Jermain Defoe scored two penalties as Sunderland twice came from behind to earn a point against second-placed Liverpool.